package com.woniu.atms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.io.Serializable;

/**
 * (G5User)实体类
 *
 * @author makejava
 * @since 2022-01-17 14:25:28
 */
@TableName("g5_user")
public class G5User implements Serializable {
    private static final long serialVersionUID = 964874844188792406L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "账号不能为null")
    @NotBlank(message = "账号不能为空字符串")
    @Size(max = 14,min = 1,message = "账号长度必须在1-14个字符之间")
    private String account;
    @NotNull(message = "密码不能为null")
    @NotBlank(message = "密码不能为空字符串")
    @Size(max = 14,min = 6,message = "密码必须在6-14个字符之间")
    private String password;
    @NotNull(message = "手机号不能为null")
    @NotBlank(message = "手机号不能为空字符串")
    @Size(max = 11,min = 11,message = "手机号必须是11位数字")
    private String telephone;
    @NotNull(message = "邮箱不能为null")
    @NotBlank(message = "邮箱不能为空字符串")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    private String avatar;

    private String vCode;
    
    private String status;
    
    private Date loginLockTime;
    
    private Integer errorNum;
    
    private Date reLockTime;
    
    private Integer refundNum;
    
    private String isExit;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getVCode() {
        return vCode;
    }

    public void setVCode(String vCode) {
        this.vCode = vCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getLoginLockTime() {
        return loginLockTime;
    }

    public void setLoginLockTime(Date loginLockTime) {
        this.loginLockTime = loginLockTime;
    }

    public Integer getErrorNum() {
        return errorNum;
    }

    public void setErrorNum(Integer errorNum) {
        this.errorNum = errorNum;
    }

    public Date getReLockTime() {
        return reLockTime;
    }

    public void setReLockTime(Date reLockTime) {
        this.reLockTime = reLockTime;
    }

    public Integer getRefundNum() {
        return refundNum;
    }

    public void setRefundNum(Integer refundNum) {
        this.refundNum = refundNum;
    }

    public String getIsExit() {
        return isExit;
    }

    public void setIsExit(String isExit) {
        this.isExit = isExit;
    }

}

